{include file="common/header"}
<div class="content-wrapper">
    {include file="chat/listsNav"/}
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="nav-tabs-custom">
                    {include file="chat/tabs"/}
                    <div class="panel-body">
                                    <form class="form-horizontal" method="get" role="form">
                                    
                                        <div class="form-group">
                                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">用户id</label>
                                            <div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
                                                <input type="text" class="form-control" name="uid" value="{$_GET['uid']?$_GET['uid']:''}" placeholder="请输入用户id">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">任务id</label>
                                            <div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
                                                <input type="text" class="form-control" name="task_id" value="{$_GET['task_id']?$_GET['task_id']:''}" placeholder="请输入任务id">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">状态</label>
                                            <div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
                                                <label class="checkbox-inline">
                                                    <input type="radio" name="status"  value="0">
                                                    进行中
                                                </label>
                                                <label class="checkbox-inline">
                                                    <input type="radio" name="status"  value="1">
                                                    胜出
                                                </label>
                                                <label class="checkbox-inline">
                                                    <input type="radio" name="status"  value="2">
                                                    失败
                                                </label>
                                               
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-6 col-md-8 col-lg-8 col-xs-12 col-md-offset-2 col-lg-offset-2 col-sm-offset-4">
                                                <button class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                    <div class="tab-content">
                        <div class="page-content">
                            
                            <form method="post" class="form-horizontal" id="display_form">
                                <div class="panel panel-default ">
                                    <div class="table-responsive panel-body">
                                        <table class="table table-hover">
                                            <thead class="navbar-inner">
                                            <tr>
                                         
                                                <th>任务ID</th>
                                                <th>任务名称</th>
                                                <th>投诉人id</th>
                                                <th>投诉人昵称</th>
                                                <th>被投诉id</th>
                                                <th>被投诉人昵称</th>
                                                <th>创建时间</th>
                                                <th>结束时间</th>
                                                <th>类型</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            {if !empty($list)}
                                                {volist name="list" id="item"}
                                                <tr>
                                                    <td>{$item['task_id']}</td>
                                                    <td>{$item['rname']}</td>
                                                    <td>{$item['uid']}</td>
                                                    <td>{$item['tname']}</td>
                                                    <td>{$item['fid']}</td>
                                                    <td>{$item['btname']}</td>
                                                    <td>{$item['create_time']}</td>
                                                    <td>{$item['over_time']|date="Y-m-d H:i:s",###}</td>
                                                    <td>
                                                    	{if $item.type==1}
                                                    		赚客投诉
                                                    	{else /}
                                                    		雇主投诉
                                                    	{/if}
                                                    </td>
                                                    <td>
                                                    	{if $item.status==0}
                                                    		进行中
                                                    	{elseif $item.status==1}
                                                    	    胜出
                                                    	{else /}
                                                    		失败
                                                    	{/if}
                                                        
                                                    </td>
                                                    <td>
                                                        <a href="{:url('chat/complaint',['id'=>$item['id']])}" class="btn btn-sm btn-success">查看内容</a>
                                                    </td>
                                                </tr>
                                                {/volist}
                                              
                                            {/if}
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </form>
                            {$pager}
                           
                        </div>
                    </div>
                    <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
    </section>
</div>
{include file='common/ufooter'}
